package com.example.spingbootvue.service;

import com.example.spingbootvue.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class limitservice {
    @Autowired
    UserMapper userMapper;

    //给用户降权
    public Integer relimit(Integer id){
            return userMapper.relimit(id);
    }
    //给用户升级权限
    public Integer uplimit(Integer id){
        return userMapper.uplimit(id);
    }

    //将用户封禁
    public Integer isban(Integer id){
        return userMapper.banaccount(id);
    }

    //将用户解除封禁
    public Integer noban(Integer id){
        return userMapper.removeaccount(id);
    }

}
